﻿using System;
using System.IO;

using Microsoft.Xna.Framework.Content;

using xEngine.Utils;

namespace xEngine.UI
{
    public class XContentManager : ContentManager
    {
        #region Constructors

        public XContentManager(IServiceProvider serviceProvider) : base(serviceProvider, ".") { }

        #endregion

        #region Functions

        protected override Stream OpenStream(string assetName)
        {
            return DataLoader.GetStream(assetName + ".xnb");
        }

        #endregion
    }
}
